package homework6_24.practice4;

import homework6_24.practice4.jiekou.*;

public class PhoneTest {
	public static void main(String[] args) {
		Phone cell = new CellPhone("诺基亚","老年型");
		Phone smart = new SmartMobilePhone("华为","P30");
		Photo p = new Photo_1();
		Network n = new Network_1();


		((CellPhone)cell).show();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		((SmartMobilePhone)smart).setNetwork(n);
		((SmartMobilePhone)smart).setPhoto(p);
		((SmartMobilePhone)smart).show();
	}
}
